package com.ghxxzx.daglcustom.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.models.auth.In;

/**
 * @Author: 刘华
 * @Date: 2020/10/22 10:28
 * @Version 1.0
 */
public class User {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String dw;
    private String phone;
    private String account;
    private String password;
    private Integer roleId;
    @TableField(exist = false)
    private String roleName;

    public User(String name, String dw, String phone, String account, String password, Integer roleId, String roleName) {
        this.name = name;
        this.dw = dw;
        this.phone = phone;
        this.account = account;
        this.password = password;
        this.roleId = roleId;
        this.roleName = roleName;
    }

    public User() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDw() {
        return dw;
    }

    public void setDw(String dw) {
        this.dw = dw;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
}
